//
//  ProductDetailHandle.swift
//  weile
//
//  Created by LKM on 16/11/2.
//  Copyright © 2016年 LKM. All rights reserved.
//

import UIKit
import SwiftyJSON


class PushProductDetailHandle: NSObject, PushHandleAble  {
    
    override init() {
        
    }
    func toData(forJSONWrap: [String: JSON]?) -> Any {
        return PushProductDetailTo.init(jsons: forJSONWrap)
    }
    
    func handler(data: Any) {
        let o = data as? PushProductDetailTo;
        
        ActivityRequest.presentNavBarWarp(ActivityRequest.AppRootViewController()!, ActivityRequest.getProductDetailController( String(o?.pid ?? 0) ), true);
        
        //,AppDelegate.getInstance().window!.rootViewController! )
        
        //        AppDelegate.getInstance().window!.rootViewController.con
    }
}
